package com.sd.service.impl;
import com.sd.dao.AssistantDAO;
import com.sd.domain.Assistant;
import com.sd.service.AssistantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AssistantServiceImpl implements AssistantService {

    @Autowired
    private AssistantDAO assistantDAO;

    @Override
    public void save(Assistant assistant) throws Exception {
        assistantDAO.save(assistant);
    }

    @Override
    public Assistant findByAuthCode(String xxl_sso_sessionid) {
        return assistantDAO.findByAuthCode(xxl_sso_sessionid);
    }

    @Override
    public void removeByAuthCode(String xxl_sso_sessionid) {
        assistantDAO.removeByAuthCode(xxl_sso_sessionid);
    }
}
